package cn.huyanbing.middleware.sentinel;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * @BelongProject middleware
 * @BelongPackage cn.huyanbing.middleware
 * @Description TODO
 * @ClassName Application
 * @Author huyangbing
 * @Date 2024/8/23 23:20
 * @Version 1.0.0
 */

@Slf4j
@SpringBootApplication(scanBasePackages = {"cn.huyanbing.middleware.sentinel"},
        exclude = {DataSourceAutoConfiguration.class, FreeMarkerAutoConfiguration.class})
public class Application {

    public static void main(String[] args) {
        SpringApplicationBuilder springApplicationBuilder = new SpringApplicationBuilder(Application.class);
        springApplicationBuilder.web(WebApplicationType.SERVLET)
                .run(args);
    }
}
